package cn.jinjie.day05.test3;

public class Demo1 {
    public static void main(String[] args) {
        useCompare(new Compare() {
            @Override
            public boolean compare(int a, int b) {
                return false;
            }
            @Override
            public boolean equals(Object obj) {
                return super.equals(obj);
            }
        });
        useCompare((a, b) -> false);
    }

    public static void useCompare(Compare c) {
        boolean result = c.compare(20, 30);
        System.out.println(result);
    }
}
